home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / capplets-data.postrm < prev    next >
Encoding:
Text File  |  2007-04-20  |  1.6 KB  |  41 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_scrollkeeper
  4. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  5.     scrollkeeper-update -q
  6. fi
  7. # End automatically added section
  8. # Automatically added by dh_gconf
  9. if [ "$1" = purge ]; then
  10.     OLD_DIR=/etc/gconf/schemas
  11.     SCHEMA_FILES="apps_gnome_settings_daemon_default_editor.schemas apps_gnome_settings_daemon_keybindings.schemas apps_gnome_settings_daemon_screensaver.schemas control-center.schemas desktop_gnome_font_rendering.schemas fontilus.schemas themus.schemas "
  12.     if [ -d $OLD_DIR ]; then
  13.         for SCHEMA in $SCHEMA_FILES; do
  14.             rm -f $OLD_DIR/$SCHEMA
  15.         done
  16.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  17.     fi
  18. fi
  19. # End automatically added section
  20. # Automatically added by dh_desktop
  21. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  22.     update-desktop-database -q
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_iconcache
  26. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  27. if [ "$1" = "remove" ] && \
  28.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  29.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  30.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  31.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  32.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  33.         # it's not important enough
  34.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  35.     else
  36.         # if the icon theme directory has no subdirs, we can remove the cache
  37.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  38.     fi
  39. fi
  40. # End automatically added section
  41.